﻿using Os.Domain;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using MySql.Data.MySqlClient;
using System.Collections.Generic;
using System.Data;

namespace Os.Test
{
    
    
    /// <summary>
    ///This is a test class for TempoTest and is intended
    ///to contain all TempoTest Unit Tests
    ///</summary>
    [TestClass()]
    public class TempoTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Tempo Constructor
        ///</summary>
        [TestMethod()]
        public void TempoConstructorTest()
        {
            int idTempo = 0; // TODO: Initialize to an appropriate value
            Tempo target = new Tempo(idTempo);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Tempo Constructor
        ///</summary>
        [TestMethod()]
        public void TempoConstructorTest1()
        {
            Tempo target = new Tempo();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CompleteObject
        ///</summary>
        [TestMethod()]
        public void CompleteObjectTest()
        {
            Tempo target = new Tempo(); // TODO: Initialize to an appropriate value
            target.CompletarObjeto();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Delete
        ///</summary>
        [TestMethod()]
        public void DeleteTest()
        {
            int idTempo = 0; // TODO: Initialize to an appropriate value
            Tempo.Remover(idTempo);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Delete
        ///</summary>
        [TestMethod()]
        public void DeleteTest1()
        {
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            int idTempo = 0; // TODO: Initialize to an appropriate value
            Tempo.Remover(trans, idTempo);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetParameters
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void GetParametersTest()
        {
            Tempo_Accessor target = new Tempo_Accessor(); // TODO: Initialize to an appropriate value
            List<MySqlParameter> expected = null; // TODO: Initialize to an appropriate value
            List<MySqlParameter> actual;
            actual = target.ObterParametros();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Insert
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void InsertTest()
        {
            Tempo_Accessor target = new Tempo_Accessor(); // TODO: Initialize to an appropriate value
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            target.Inserir(trans);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Insert
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void InsertTest1()
        {
            Tempo_Accessor target = new Tempo_Accessor(); // TODO: Initialize to an appropriate value
            target.Inserir();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LoadByOs
        ///</summary>
        [TestMethod()]
        public void LoadByOsTest()
        {
            OrdemServico os = null; // TODO: Initialize to an appropriate value
            List<Tempo> expected = null; // TODO: Initialize to an appropriate value
            List<Tempo> actual;
            actual = Tempo.CarregarPorOs(os);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CarregarObjeto
        ///</summary>
        [TestMethod()]
        public void CarregarObjetoTest()
        {
            int idTempo = 0; // TODO: Initialize to an appropriate value
            Tempo expected = null; // TODO: Initialize to an appropriate value
            Tempo actual;
            actual = Tempo.CarregarObjeto(idTempo);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Save
        ///</summary>
        [TestMethod()]
        public void SaveTest()
        {
            Tempo target = new Tempo(); // TODO: Initialize to an appropriate value
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            target.Salvar(trans);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Save
        ///</summary>
        [TestMethod()]
        public void SaveTest1()
        {
            Tempo target = new Tempo(); // TODO: Initialize to an appropriate value
            target.Salvar();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RealizarPersistencia
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void RealizarPersistenciaTest()
        {
            IDataReader dado = null; // TODO: Initialize to an appropriate value
            Tempo objTempo = null; // TODO: Initialize to an appropriate value
            Tempo_Accessor.RealizarPersistencia(dado, objTempo);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SetParameters
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void SetParametersTest()
        {
            Tempo_Accessor target = new Tempo_Accessor(); // TODO: Initialize to an appropriate value
            List<MySqlParameter> parms = null; // TODO: Initialize to an appropriate value
            target.PreencherParametros(parms);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Update
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void UpdateTest()
        {
            Tempo_Accessor target = new Tempo_Accessor(); // TODO: Initialize to an appropriate value
            MySqlTransaction trans = null; // TODO: Initialize to an appropriate value
            target.Salvar(trans);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Update
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Os.Domain.dll")]
        public void UpdateTest1()
        {
            Tempo_Accessor target = new Tempo_Accessor(); // TODO: Initialize to an appropriate value
            target.Salvar();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for IdTempo
        ///</summary>
        [TestMethod()]
        public void IdTempoTest()
        {
            Tempo target = new Tempo(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.IdTempo = expected;
            actual = target.IdTempo;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Os
        ///</summary>
        [TestMethod()]
        public void OsTest()
        {
            Tempo target = new Tempo(); // TODO: Initialize to an appropriate value
            OrdemServico expected = null; // TODO: Initialize to an appropriate value
            OrdemServico actual;
            target.Os = expected;
            actual = target.Os;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
